package com.king.gc;

/**
 * -XX:+PrintGCDetails -XX:SurvivorRatio=8
 * -XX:MaxTenuringThreshold=15 -Xms40M -Xmx40M -Xmn20M
 * @author taomk
 * @version 1.0
 * @since 15-5-10 上午9:46
 */
public class TestHeapGC {
	public static void main(String [] args) {
		byte[] b1 = new byte[1024 * 1024 / 2];
		byte[] b2 = new byte[1024 * 1024 * 8];
		b2 = null;
		b2 = new byte[1024 * 1024 * 8];
		System.gc();
	}
}
